﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.DynamicData;

namespace Fatec.ControleEstoque.Attributes
{
    [AttributeUsage(AttributeTargets.Property)]
    public class HideColumnInAttribute : Attribute
    {
        public PageTemplate[] PageTemplates { get; private set; }

        public HideColumnInAttribute()
        {
            PageTemplates = new PageTemplate[0];
        }

        public HideColumnInAttribute(params PageTemplate[] lookupTable)
        {
            PageTemplates = lookupTable;
        }

        public static HideColumnInAttribute Default = new HideColumnInAttribute();
    }

    public enum PageTemplate
    {
        Details,
        Edit,
        Insert,
        List,
        ListDetails,
        // add any custom page templates here
    }
}